import Flight from './components/flight.vue'
import Hotel from './components/hotel.vue'
import Train from './components/train.vue'
import TmcFooter from '@/components/Footer'

import banner1 from '@/images/banner/banner1.jpg'
import banner2 from '@/images/banner/banner2.jpg'
import banner3 from '@/images/banner/banner3.jpg'

export default {
	data() {
		return {
			menu:[
				{name:'机票',key:1,bgUrl:banner1},
				{name:'酒店',key:2,bgUrl:banner2},
				{name:'火车票',key:3,bgUrl:banner3},
			],
			active:1,
			bannerStyle:{
				backgroundImage: "url(" + banner1 + ")",            	
			}
		}
	},
	computed: {
		
	},
	watch:{
		
	},
	methods: {
		choose(key,bgUrl){
			this.active = key;
			this.bannerStyle.backgroundImage = "url(" + bgUrl + ")";
		}
	},
	components:{
		Flight,
		Hotel,
		Train,
		TmcFooter
	},
	created() {
		
	}
}